<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <script type="text/javascript" src="../static/lib/html5shiv.js"></script>
  <script type="text/javascript" src="../static/lib/respond.min.js"></script>
  <script type="text/javascript" src="../static/lib/jquery/1.9.1/jquery.min.js"></script>
  <link rel="stylesheet" href="../static/h-ui/css/H-ui.css" />
  <script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script>
  <link rel="stylesheet" href="../static/css/company.css" />
  <meta charset="UTF-8">
  <title>BVO Information</title>
</head>
<body>
<div class="panel1">
  <div class="panel-header1">BVO Information</div>
  <div class="panel-body1">
    <!-- Table -->
    <table class="table">
      <tbody>
      <tr>
        <td class="text-r" width="130">username：</td>
        <td width="120"><span id="userName" th:text="${userName}"></span></td>
      </tr>
      <tr>
        <td class="text-r" width="130">联系方式：</td>
        <td width="170"><span id="tel" th:text="${tel}"></span></td>
      </tr>
      </tbody>
    </table>
  </div>
  <input class="btn btn-primary-outline radius btn-location" type="button" value="编辑" id="btnBvoEdit">
</div>

<script type="text/javascript">

  function getBvoInfo(){
    var id = [[${id}]];
    var userName = $("#userName").text();
    var tel = $("#tel").text();
    var bvoInfo = {
      'id':id,
      'userName':userName,
      'tel':tel,
    }
    console.log(bvoInfo)
    return bvoInfo;
  }

  $("#btnBvoEdit").click(function() {
    var msg=getBvoInfo();
    url="/store/goeditbvo?"+"id="+msg.id+"&userName="+msg.userName+"&tel="+msg.tel;
    window.location.href = url;
  })

</script>

</body>
</html>